/*
 * main.c
 *
 *  Created on: Oct 26, 2012
 *      Author: temarco
 */

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

static int number_of_threads = 5;

void work(){

}

int main(int argc, char **argv){
	int i=0;

	pthread_t * thread = malloc(sizeof(pthread_t)*number_of_threads);

	for (i; i<number_of_threads; i++) {
		int res = pthread_create(&thread[i],NULL,&work,NULL);

		if (res != 0) {
			printf("Create pthread error!!!\n");
			exit(1);
		}
	}
	return 0;
}
